<?php


namespace app\index\controller;


use think\Controller;
use think\Request;
use think\facade\Session;
use Jwt;
class Base extends Controller
{
    // public function __construct(Request $request)
    // {
    //     $this->request = $request;
    //     // 控制器初始化
    //     $this->request->filter('trim,strip_tags,htmlspecialchars');
    //     // token
    //     $token = $this->request->server('HTTP_TOKEN', $this->request->request('token'),Session::get('token'));
    //     $jwt = new Jwt;
    //     $status = $jwt->verifyToken($token);
    //     // dump($status);
    //     if($status == false){
    //         echo json_encode(['code'=>401,'msg'=>'token无效，请登录',"data"=>[]]);
          
    //         exit;
    //     }
       

    // }

   
}